package com.wxx.zuoye.lagouspringboot.service.imp;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.google.common.collect.Lists;
import com.wxx.zuoye.lagouspringboot.dao.IndexRepository;
import com.wxx.zuoye.lagouspringboot.pojo.TArticle;
import com.wxx.zuoye.lagouspringboot.service.IndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class IndexServiceImp implements IndexService {
    @Autowired
    IndexRepository indexRepository;
    /**
     * 查询博客
     * @return
     */
    @Override
    public Iterable<TArticle> selectTArticle() {
        return indexRepository.findAll();
    }
}
